######################################################
# 如下参数根据实际项目配置



global AccBias_mA    # 偏执电流mA
global SensoR_mohm # 20mΩ

global AgingCapacity_uAhrs
global ChargeVoltage_mV 
global ChargeCurrent_mA

global AEVoltage_mV 
global AECurrent_mA 

global ActiveEmpty_40_mAhrs

global Full_40_mAhrs
global Full_30_mAhrs
global Full_20_mAhrs
global Full_10_mAhrs
global Full_00_mAhrs

global AE_40_mAhrs
global AE_30_mAhrs
global AE_20_mAhrs
global AE_10_mAhrs
global AE_00_mAhrs


global SE_40_mAhrs
global SE_30_mAhrs
global SE_20_mAhrs
global SE_10_mAhrs
global SE_00_mAhrs

global RSGAIN
global RSTCO 


AccBias_mA=0.3125    # 偏执电流mA
SensoR_mohm = 20 # 20mΩ

AgingCapacity_mAhrs=3850
ChargeVoltage_mV = 3760  # 充满时电压mV
ChargeCurrent_mA=100      # 充满时电流

AEVoltage_mV = 3600      # 放电结束电压
AECurrent_mA = 210       # 放电结束电流

ActiveEmpty_40_mAhrs=740 # 不能太大，否则计算得负数

Full_40_mAhrs=3800
Full_30_mAhrs=3790
Full_20_mAhrs=3780
Full_10_mAhrs=3770
Full_00_mAhrs=3760

AE_40_mAhrs=2940
AE_30_mAhrs=3040
AE_20_mAhrs=3140
AE_10_mAhrs=3240
AE_00_mAhrs=3340


SE_40_mAhrs=2840# 无用
SE_30_mAhrs=2940
SE_20_mAhrs=3040
SE_10_mAhrs=3140
SE_00_mAhrs=3240

RSGAIN=1.03
RSTCO = 0